﻿using GCC.Container.LogProviders;

namespace GCC.Container.Common.Models
{


    /// <summary>
    /// 容器的配置 对象结构
    /// </summary>
    public class ContainerConfig
    {
        /// <summary>
        /// 主机https端口
        /// </summary>
        public short HttpsPort { get; set; } = 5000;
        /// <summary>
        /// 主机http端口
        /// </summary>
        public short HttpPort { get; set; } = 5001;
        /// <summary>
        /// 主机httpv2端口
        /// </summary>
        public short HttpV2Port { get; set; } = 5002;
        /// <summary>
        /// 证书文件地址
        /// </summary>
        public string Certificate2File { get; set; } = "";
        /// <summary>
        /// 证书密码
        /// </summary>
        public string Certificate2Password { get; set; } = "";

        /// <summary>
        /// 所有的插件
        /// </summary>
        public List<PluginItem> Plugins { get; set; } = new List<PluginItem>();

        /// <summary>
        /// 系统日志配置
        /// </summary>
        public LogOptions? SystemLog { get; set; } = null;

        /// <summary>
        /// 认证头秒数
        /// </summary>
        public string AuthHeader { get; set; } = "GCCToken";

    }
}
